<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo-05-MVVM模型</title>
    <script type="text/javascript" src="../JS/vue.js"></script>
</head>
<body>
<!-- MVVM模型
    1.M: 模型(Model), data中的数据
    2.V: 视图(View), 模板代码
    3.VM: 视图模型(ViewModel): Vue实例-->

<div id="root">
    <h3>学校名称：{{ name }}</h3>
    <h3>学校地址：{{ address }}</h3>
</div>

<script text="text/javascript">
    const vm = new Vue({
        el: '#root',

        data: {
            name: '尚硅谷',
            address: '北京',
        },
    })

    console.log(vm)
</script>
</body>
</html>